package com.demo.money.service.impl;

import com.demo.money.dao.IpDao;
import com.demo.money.model.Ip;
import com.demo.money.service.IpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: money
 * @description: ip表Service实现
 * @author: 张峰浦
 * @create: 2020-04-04 15:16
 */
@Service
public class IpServiceImpl implements IpService {
    @Autowired
    private IpDao ipDao;

    /**
     * 记录ip
     *
     * @param record 用户ip信息
     * @return 添加响应
     */
    @Override
    public int insert(Ip record) {
        return ipDao.insert(record);
    }
}
